package com.aiobc.business.personalcenter.service.impl;


import com.aiobc.business.personalcenter.domain.DataUnopenApply;
import com.aiobc.business.personalcenter.mapper.DataUnopenApplyMapper;
import com.aiobc.business.personalcenter.service.DataUnopenApplyService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @Author zhangcan
 * @Description: 数据审核
 * @Date: 2021-10-19 9:00
 */
@Service
public class DataUnopenApplyServiceImpl implements DataUnopenApplyService {

    @Autowired
    private DataUnopenApplyMapper dataUnopenApplyMapper;

    /**
     * @Author zhangcan
     * @Description: 新增数据申请
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int insertDataUnopenApply(DataUnopenApply dataUnopenApply){
        return dataUnopenApplyMapper.insertDataUnopenApply(dataUnopenApply);
    }

    /**
     * @Author zhangcan
     * @Description: 修改数据申请
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int updateDataUnopenApply(DataUnopenApply dataUnopenApply)
    {
        return dataUnopenApplyMapper.updateDataUnopenApply(dataUnopenApply);
    }
    /**
     * @Author zhangcan
     * @Description: 删除数据申请
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int deleteDataUnopenApplyById(String applyId)
    {
        return dataUnopenApplyMapper.deleteDataUnopenApplyById(applyId);
    }

    /**
     * @Author zhangcan
     * @Description: 批量删除数据申请
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int deleteDataUnopenApplyByIds(String []applyIds)
    {
        return dataUnopenApplyMapper.deleteDataUnopenApplyByIds(applyIds);
    }

    /**
     * @Author zhangcan
     * @Description: 查询数据申请
     * @Date: 2021-10-19 9:00
     */
    @Override
    public DataUnopenApply selectDataUnopenApplyById(String applyId)
    {
        return dataUnopenApplyMapper.selectDataUnopenApplyById(applyId);
    }

    /**
     * @Author zhangcan
     * @Description: 查询数据申请列表
     * @Date: 2021-10-19 9:00
     */
    @Override
    public List<DataUnopenApply> selectDataUnopenApplyList(DataUnopenApply dataUnopenApply)
    {
        return dataUnopenApplyMapper.selectDataUnopenApplyList(dataUnopenApply);
    }
}
